package com.lswms.service;

import com.lswms.common.service.CrudService;
import com.lswms.dto.YnBankcardDTO;
import com.lswms.dto.vo.req.BankcardReq;
import com.lswms.dto.vo.req.UnBankcardReq;
import com.lswms.entity.YnBankcardEntity;
import com.lswms.entity.YnUserEntity;

import java.util.List;

/**
 * 绑卡记录表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-25
 */
public interface YnBankcardService extends CrudService<YnBankcardEntity, YnBankcardDTO> {

	/**
	 * 绑卡列表
	 * @param ynuser
	 * @return
	 */
	public List<YnBankcardDTO> bankcardList(YnUserEntity ynuser);
	/**
	 * 绑卡
	 * @param dto
	 * @param ynuser
	 */
	public void bankcard(BankcardReq dto,YnUserEntity ynuser);
	/**
	 * 解绑
	 * @param dto
	 * @param ynuser
	 */
	public void unbankcard(UnBankcardReq dto,YnUserEntity ynuser);
}